<template>
  <div class="container">
    <Category title="游戏">
      <template>
        <ul>
          <li
            v-for="(item,index) in games"
            :key="index"
          > {{ item }}</li>
        </ul>
      </template>
    </Category>
    <Category title="游戏">
      <template scope="atguigu">
        <ol>
          <li
            v-for="(item,index) in atguigu.games"
            :key="index"
          > {{ item }}</li>
        </ol>
      </template>
    </Category>
    <Category title="游戏">
      <template slot-scope="atguigu">
        <h4
          v-for="(item,index) in atguigu.games"
          :key="index"
        > {{ item }}</h4>
      </template>
    </Category>
  </div>
</template>

<script>
import Category from './components/Category'
export default {
  name: 'App',
  components: {
    Category
  },
  data() {
    return {

    }
  },
}
</script>

<style>
.container {
  display: flex;
  justify-content: space-around;
}
.foot {
  display: flex;
  justify-content: space-evenly;
}
img {
  width: 100%;
}
video {
  width: 100%;
}
h4 {
  text-align: center;
}
</style>

